package com.example.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class JsonResult implements Serializable {
    private Boolean flag;   //
    private String message;  // 描述信息
    private Object data;   // 数据

    public JsonResult(){

    }
    public JsonResult(Boolean flag){
        this.flag=flag;
    }
    public JsonResult(Boolean flag,String message){
        this.flag=flag;
        this.message=message;
    }
    public JsonResult(Boolean flag,String message,Object data){
        this.flag=flag;
        this.message=message;
        this.data=data;
    }
}
